class VideoDetailsModel {
  int? errCode;
  String? errMsg;
  VideoDetailsRespModel? resp;

  VideoDetailsModel({this.errCode, this.errMsg, this.resp});

  VideoDetailsModel.fromJson(Map<String, dynamic> json) {
    errCode = json['ErrCode'];
    errMsg = json['ErrMsg'];
    resp = json['Resp'] != null
        ? VideoDetailsRespModel.fromJson(json['Resp'])
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = {};
    data['ErrCode'] = errCode;
    data['ErrMsg'] = errMsg;
    if (resp != null) {
      data['Resp'] = resp!.toJson();
    }
    return data;
  }
}

class VideoDetailsRespModel {
  int? duration;
  int? edge;
  String? firstTaskId;
  int? resolutionRatio;
  String? secondTaskId;
  int? seed;
  String? version;
  int? width;
  int? height;
  String? negativePrompt;
  String? prompt;
  String rateStr = '';
  int randomInt = 0;
  String imgOriginalUrl = '';
  String videoOriginalUrl = '';
  String umModel = '';
  String fileId = '0';
  String url = '';
  int userLike = 0;
  int id = 0;
  int likes = 0;
  String authorNickname = '';

  VideoDetailsRespModel(
      {this.duration,
      this.edge,
      this.firstTaskId,
      this.resolutionRatio,
      this.secondTaskId,
      this.seed,
      this.version,
      this.width,
      this.height,
      this.negativePrompt,
      this.prompt,
      this.rateStr = '',
      this.randomInt = 0,
      this.imgOriginalUrl = '',
      this.videoOriginalUrl = '',
      this.umModel = '',
      this.fileId = '0',
      this.url = '',
      this.userLike = 0,
      this.id = 0,
      this.likes = 0,
      this.authorNickname = ''});

  VideoDetailsRespModel.fromJson(Map<String, dynamic> json) {
    duration = json['Duration'];
    edge = json['Edge'];
    firstTaskId = json['FirstTaskId'];
    resolutionRatio = json['ResolutionRatio'];
    secondTaskId = json['SecondTaskId'];
    seed = json['Seed'];
    version = json['Version'];
    height = json['Height'];
    width = json['Width'];
    prompt = json['Prompt'];
    negativePrompt = json['NegativePrompt'];
    umModel = json['UModel'];
    url = json['Url'];
    userLike = json['UserLike'];
    id = json['Id'];
    likes = json['Likes'];
    authorNickname=json['AuthorNickname'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = {};
    data['Duration'] = duration;
    data['Edge'] = edge;
    data['FirstTaskId'] = firstTaskId;
    data['ResolutionRatio'] = resolutionRatio;
    data['SecondTaskId'] = secondTaskId;
    data['Seed'] = seed;
    data['Version'] = version;
    data['Height'] = height;
    data['Width'] = width;
    data['Prompt'] = prompt;
    data['NegativePrompt'] = negativePrompt;
    return data;
  }
}
